<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictGroupList" checkbox="false" fitColumns="true" title="机床列表" actionUrl="labOpenMaterialController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="机床编号"  field="machineNo"     queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="机床名称"  field="machineName"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="负责教师"  field="teacher.realName"   queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="所属实验室"  field="lab.name"     queryMode="single"  width="120" query="true"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt  funname="openConfigWin(id)" title="设置开放耗材"  />

   </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
	 
 });
 
 function openConfigWin(id){
	 var addurl = "labOpenMaterialController.do?materialList&deviceId="+id;
	 $.dialog({
			content: 'url:'+addurl,
			lock : true,
			zIndex: getzIndex(),
			width:"900px",
			height:"500px",
			title:"设置开放耗材",
			opacity : 0.3,
			fixed:true,
			cache:false,
		    ok:false,
		    cancelVal: '关闭',
		    cancel: true /*为true等价于function(){}*/
		});
 }
 
 </script>